package com.platform.system.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.annotation.Excel;
import com.platform.common.core.domain.BaseEntity;

/**
 * 商家对象 pro_merchant
 *
 * @author platform
 * @date 2025-02-23
 */
@Schema(name = "商家对象", description = "")
public class ProMerchant extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Schema(description = "主键ID", implementation = Long.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    @Schema(description = "名称", implementation = String.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private String name;

    /**
     * 描述
     */
    @Excel(name = "描述")
    @Schema(description = "描述", implementation = String.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private String description;

    /**
     * 分类
     */
    @Excel(name = "分类")
    @Schema(description = "分类", implementation = String.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private String category;

    /**
     * 地址
     */
    @Excel(name = "地址")
    @Schema(description = "地址", implementation = String.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private String address;

    /**
     * 电话
     */
    @Excel(name = "电话")
    @Schema(description = "电话", implementation = String.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private String telephone;

    /**
     * 状态,[0-停业,1-营业]
     */
    @Excel(name = "状态,[0-停业,1-营业]")
    @Schema(description = "状态,[0-停业,1-营业]", implementation = Integer.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private Integer status;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @Schema(description = "用户id", implementation = Long.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private Long userId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCategory() {
        return category;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("description", getDescription())
                .append("category", getCategory())
                .append("address", getAddress())
                .append("telephone", getTelephone())
                .append("status", getStatus())
                .append("userId", getUserId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
